package org.cloud.im.core;

import org.cloud.im.core.exception.ImDecodeException;
import org.tio.core.ChannelContext;

import java.nio.ByteBuffer;

/**
 * @Author: w.weidong.lin@abite.com
 * @Description: 编解码
 * @Date: create in 2021/10/19 14:14
 */
public interface ImDecoder {
    ImPacket decode(ByteBuffer buffer, ChannelContext channelContext) throws ImDecodeException;
}
